<?php

namespace App\Events;

use App\Models\LoanApplication;
use App\Models\Org;
use App\Models\User;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class LoanBuyEvent
{
    use Dispatchable, SerializesModels;

    /**
     * @var LoanApplication
     */
    public $loan;

    /**
     * @var User
     */
    public $user;

    /**
     * @param $loan
     * @param $user
     */
    public function __construct($loan, $user)
    {
        $this->loan = $loan;
        $this->user = $user;
    }
}
